﻿using LocalTest.Domain.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore.Metadata.Conventions;

namespace LocalTest.Infrastructure.Configurations;

public class DesignersConfiguration : IEntityTypeConfiguration<Designer>
{
    public void Configure(EntityTypeBuilder<Designer> builder)
    {
        builder.Property(p => p.Content).HasColumnType("text");
        builder.ConfigureRootEntity();
    }
}